﻿#define Server
/*
 * Created by SharpDevelop.
 * User: think
 * Date: 2011/11/18
 * Time: 22:39
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Windows.Forms;
using System.Threading;
using System.Data;


/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
    /// <summary>
    /// Program entry point.
    /// </summary>
    [STAThread]
    private static void Main(string[] args)
    {
        Application.Run(new frmMain());
        return;
        
#if Server
        ThreadPool.QueueUserWorkItem(new WaitCallback(ThreadHanle));
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new frmMain());
#else
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new frmDiagnosisDrugs());
#endif
    }

    static void ThreadHanle(object sender)
    {
#if Server
        NetTableBridge.Server ntb = new NetTableBridge.Server(18918);
#else
#endif
    }

}